package com.cbtx.module_sp.bean;

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/6/11 10:55 AM
 * desc   :
 */
public class RequestException extends RuntimeException {

    /** 提示码-成功 */
    public static final int CODE_SUCCESS = 0;
    /** 提示码-错误、系统异常等 */
    public static final int CODE_SYSTEM_ERROR = -1;

    /** 提示码-访问限制，非法请求，非系统内部设备 弹出二维码*/
    public static final int CODE_PERMISSION_DENIED = -100;
    /** 提示码-参数验证失败 */
    public static final int CODE_PARAM_VALIDATE_FAIL = -101;

    /** 提示码-设备尚未注册 调用register接口*/
    public static final int CODE_DEVICE_DID_NOT_REGISTER = -102;
    /** 提示码-设备token失效 联系解绑*/
    public static final int CODE_DEVICE_TOKEN_INVALID = -103;
    /** 提示码-设备sign签名验证失败 */
    public static final int CODE_DEVICE_SIGN_VALIDATE_FAIL = -104;
    /** 提示码-设备已被冻结 只播放打底广告*/
    public static final int CODE_DEVICE_IS_FROZEN = -105;
    /** 提示码-商家授权已过期 */
    public static final int CODE_COMPANY_OUT_OF_SERVICE = -106;

    /** 状态码- */
    public static final int CODE_HTTP_CREATE = 201;
    /** 状态码-未授权 */
    public static final int CODE_HTTP_UNAUTHORIZED = 401;
    /** 状态码-参数错误 */
    public static final int CODE_HTTP_FORBIDDEN = 403;
    /** 状态码-接口不存在 */
    public static final int CODE_HTTP_NOT_FOUND = 404;


}
